package com.company.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.company.system.mapper.TablePositionlistMapper;
import com.company.system.domain.TablePositionlist;
import com.company.system.service.ITablePositionlistService;

/**
 * 职位列Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
@Service
public class TablePositionlistServiceImpl implements ITablePositionlistService 
{
    @Autowired
    private TablePositionlistMapper tablePositionlistMapper;

    /**
     * 查询职位列
     * 
     * @param positionid 职位列主键
     * @return 职位列
     */
    @Override
    public TablePositionlist selectTablePositionlistByPositionid(Long positionid)
    {
        return tablePositionlistMapper.selectTablePositionlistByPositionid(positionid);
    }

    /**
     * 查询职位列列表
     * 
     * @param tablePositionlist 职位列
     * @return 职位列
     */
    @Override
    public List<TablePositionlist> selectTablePositionlistList(TablePositionlist tablePositionlist)
    {
        return tablePositionlistMapper.selectTablePositionlistList(tablePositionlist);
    }

    /**
     * 新增职位列
     * 
     * @param tablePositionlist 职位列
     * @return 结果
     */
    @Override
    public int insertTablePositionlist(TablePositionlist tablePositionlist)
    {
        return tablePositionlistMapper.insertTablePositionlist(tablePositionlist);
    }

    /**
     * 修改职位列
     * 
     * @param tablePositionlist 职位列
     * @return 结果
     */
    @Override
    public int updateTablePositionlist(TablePositionlist tablePositionlist)
    {
        return tablePositionlistMapper.updateTablePositionlist(tablePositionlist);
    }

    /**
     * 批量删除职位列
     * 
     * @param positionids 需要删除的职位列主键
     * @return 结果
     */
    @Override
    public int deleteTablePositionlistByPositionids(Long[] positionids)
    {
        return tablePositionlistMapper.deleteTablePositionlistByPositionids(positionids);
    }

    /**
     * 删除职位列信息
     * 
     * @param positionid 职位列主键
     * @return 结果
     */
    @Override
    public int deleteTablePositionlistByPositionid(Long positionid)
    {
        return tablePositionlistMapper.deleteTablePositionlistByPositionid(positionid);
    }
}
